<?php
	$image_path = './assets/client_img/thumbs/' . $image_name;
                        if ($image_name != '') {
                            if (file_exists($image_path)) {
                                $image_path = base_url() . 'assets/client_img/thumbs/' . $image_name;
                            } else {
                                $image_path = base_url() . 'assets/client_img/no_photo/no_photo.jpg';
                            }
                        }  else {
                           	$image_path = base_url() . 'assets/client_img/no_photo/no_photo.jpg';
                        }
?>
<?php if (!empty($error_string)): ?>
    <!-- Woops... -->
    <div class="error_box">
    <?php echo $error_string; ?>
</div>
<?php endif; ?>
    <div id="content">
        <div id="title_content"><?php echo lang('edit_profile')." "."client image" ?></div>
    <?php echo form_open_multipart('admin_client/edit_client_image/' . $image_id); ?>
    <table class="form_content" width="100%">
        <tr>
            
             <td><?php echo lang("title");?> <span style="color:red">*</span></td>
            <td>
            <?php if (form_error('title')!=""){?> <div class="form_error"><?php echo generate_pure_text(form_error('title'), '<p>', '</p>'); ?></div> <?php } ?>
                    <input type="text" class="form_input" name="title" size="35" maxlength="40" value="<?php  echo set_value('first_name', $image_title); ?>" /></td>
        </tr>
        
         <tr>
            <td width="10%"><?php echo "Image" ?></td>
            <td>
            	<img src="<?php echo $image_path;?>" alt="<?php echo $image_name; ?>" />
            </td>
        </tr>
        
           
        <tr>
            <td colspan="2"><?php echo form_submit('edit_client_image', lang('edit_profile')) ?></td>
        </tr>
    </table>
    <?php echo form_close(); ?>
</div>
<!--END content-->
